package com.simple.portal.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.portal.bo.IAccountBO;
import com.simple.portal.dao.IAccountDAO;
import com.simple.portal.vo.AccountVO;

@Service("accountBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class AccountBOImpl implements IAccountBO {

	@Autowired
	private IAccountDAO accountDao;
	@Override
	public AccountVO findById(String id) {
		return accountDao.findById(id);
	}

	@Override
	public List<AccountVO> findAll() {
		return accountDao.findAll();
	}

}
